package ntd.util.frame.action.function.video.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import ntd.util.config.common.enums.protocol.EnumStreamUrlProtocol;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Schema(description = "视频相关功能入参")
public class ActionVideoInBo {

    @Schema(description = "cameraIndexCode")
    private String cameraIndexCode;

    @Schema(description = "deviceCode")
    private String deviceCode;

    @Schema(description = "取流协议类型")
    private EnumStreamUrlProtocol streamUrlProtocol = EnumStreamUrlProtocol.PROTOCOL_RTSP;

    @Schema(description = "开始时间 - 历史回放流使用（必传） - IOS8601格式：yyyy-MM-dd'T'HH:mm:ss.SSSXXX, 示例：2017-06-15T00:00:00.000+08:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @Schema(description = "结束时间 - 历史回放流使用（必传）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
